{% extends "hostmanage/base.html" %}
{% block content %}
{{ idc }}



<table  border="1" >
	<tr>
		<td>主机名称&nbsp;&nbsp;&nbsp;&nbsp;</td>
		<td>编号&nbsp;&nbsp;&nbsp;&nbsp;</td>
		<td>应用</td>
		<td>添加时间</td>
		<td colspan="2">操作</td>
		
	</tr>
	{% for host in hosts %}
		<tr>
			<td>{{ host.hostname }}</td>
			<td>{{ host.number }}</td>
			<td>{{ host.application }}</td>
			<td>{{ host.date_added|date:'M d, Y H:i' }}</td>
			<td><a href="{% url 'hostmanage:host' host.id %}">查看主机详细信息</a></td>
			<td><a href="{% url 'hostmanage:edit_host' host.id %}">修改主机信息</a></td>
		</tr>
	{% endfor %}
</table>
<a href="{% url 'hostmanage:add_host' idc.id %}">添加主机</a>


{% endblock content %}